package com.xxtx.trade.sysUser.service;



import com.xxtx.trade.common.util.model.Result;
import com.xxtx.trade.sysUser.dto.SysUserPhoneDto;

import java.security.NoSuchAlgorithmException;
import java.util.Map;


public interface SysUserPhoneService {

    /**
     * 绑定用户手机号
     */

    Result bindSysUserPhone(SysUserPhoneDto sysUserPhoneDto) throws NoSuchAlgorithmException;

    /**
     * 获取短信验证码
     */

    Result getSmsCode(SysUserPhoneDto sysUserPhoneDto);

    /**
     * 查看绑定的手机号列表
     */

    Result iccidList(SysUserPhoneDto sysUserPhoneDto);

    /**
     * 更改手机绑定
     */

    Result updateBindPhone(SysUserPhoneDto sysUserPhoneDto);

    /**
     * 查看默认的iccid
     * @param dto
     * @return
     */

    Result<Object> selectByDefaultSimByPhone(SysUserPhoneDto dto);
    /**
     * 更改默认的iccid
     */

    Result<Object> updateyDefaultSimByPhone(SysUserPhoneDto dto);

    Result selectQueryList(SysUserPhoneDto dto);

    /**
     * 根据查询条件，查询帐户信息
     * @param params
     */

    Map<String,String> selectAccountBy(Map<String, String> params);

    /**
     * 设置支付密码
     * @param params
     * @return
     */

    int setPayPass(Map<String, Object> params) throws NoSuchAlgorithmException;

    /**
     * 根据ICCID查询用户手机号
     * @param iccid
     * @return
     */

    Map<String,Object> selectMobileByIccid(String iccid);

    Result selectQueryorderList(SysUserPhoneDto dto);

    Result selectupdateOrderstate(SysUserPhoneDto dto);
}
